﻿using Basic.FlowRemoteModel;
using Basic.FlowRemoteModel.FlowApp.Model;
using WeDonekRpc.Client;
using WeDonekRpc.Model;

namespace Basic.FlowService.Interface
{
    public interface IFlowAppService
    {
        bool SetSettleFormId ( long id, long? formId );
        long Add ( FlowAppSet data );
        bool Enable ( long id );
        FlowAppBase Get ( long id );
        FlowAppDatum[] GetAppList ( FlowAppType? appType );
        PagingResult<FlowAppData> Query ( FlowAppQuery query, IBasicPage paging );
        bool Set ( long id, FlowAppSet datum );
        bool SetFlow ( long id, AppFlowSet set );
        bool Stop ( long id );
        void Delete(long id);
    }
}